<?php
/**
 * @version $Id: toolbar.extensionicons2.html.php 271 2007-12-05 23:39:15Z nik.elkuku $
 * repo $URL: http://joomla-codebase.googlecode.com/svn/trunk/extensionicons2/administrator/components/com_extensionicons2/toolbar.extensionicons2.html.php $
 * Created on 14.04.2007
 * @package ExtensionIcons2
 * @author Nikolai Plath (elkuku)
 */

//defined( '_VALID_MOS' ) or die( 'Direct Access to this script is not allowed');
defined( '_JEXEC' ) or die( 'Restricted access' );

class menuExtensionicons
{

	function list_menu() {
			JToolBarHelper::title( JText::_( 'ExtensionIcons OneFive' ), 'addedit.png' );
	
			JToolBarHelper::publishList();
			JToolBarHelper::unpublishList();
			JToolBarHelper::addNew();
			JToolBarHelper::editList();
			JToolBarHelper::deleteList();
	
			JToolBarHelper::divider();
	
			JToolBarHelper::custom( 'exiconRefresh', 'archive.png', 'archive_f2.png', JText::_('REFRESH'), false );
			JToolBarHelper::custom( 'help', 'help.png', 'default.png', JText::_('HELP'), false );
			JToolBarHelper::custom( 'MediaManager', 'move.png', 'archive_f2.png', JText::_('MEDIA'), false );
			JToolBarHelper::custom( 'ConfigModule', 'config.png', 'archive_f2.png', JText::_('MODULE'), false );
			JToolBarHelper::custom( 'ConfigExIcons', 'config.png', 'archive_f2.png', JText::_('ExiconsConfig'), false );
	}
	
	function edit_menu()
	{
	    	
	    $cid = JRequest::getVar( 'cid', array(0), '', 'array' );
		$cid = intval($cid[0]);
	
		$text = ( $cid ? JText::_( 'Edit' ) : JText::_( 'New' ) );
	
		JToolBarHelper::title( JText::_( 'ExtensionIcons' ).': <small><small>[ '. $text.' ]</small></small>', 'addedit.png' );
	    JToolBarHelper::save();
		if ( $cid )
		{
			// for existing articles the button is renamed `close`
			JToolBarHelper::cancel( 'cancel', JText::_('Close') );
		} else
		{
			JToolBarHelper::cancel();
		}
	}//function

	function edit_config_menu ()
	{
		JToolBarHelper::title( JText::_('ExtensionIcons').': <small><small>[ '.JText::_('Edit Configuration').' ]</small></small>', 'addedit.png' );
	   JToolBarHelper::save();
		JToolBarHelper::cancel();
	
	}
	
	function help_menu ()
	{
		JToolBarHelper::title( JText::_( 'ExtensionIcons' ).': <small>[ '. JText::_('Help').' ]</small>', 'help_header.png' );
		JToolBarHelper::back();
	}//function

}//class

?>
